/*
 * ************************************************************************
 *
 *  Copyright © 2018 KYE Company
 *  跨越速运集团有限公司版权所有
 *
 *  PROPRIETARY RIGHTS of KYE Company are involved in the
 *  subject matter of this material. All manufacturing, reproduction, use,
 *  and sales rights pertaining to this subject matter are governed by the
 *  license agreement. The recipient of this software implicitly accepts
 *  the terms of the license.
 *  本软件文档资料是跨越速运集团有限公司的资产，任何人士阅读和
 *  使用本资料必须获得相应的书面授权，承担保密责任和接受相应的法律约束。
 *
 * ************************************************************************
 */

package com.kyexpress;

import com.kyexpress.common.idcenter.IdGenClient;
import com.kyexpress.framework.utils.EncryptUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class Application {
    public static void main( String[] args ) {
//        SpringApplication.run(Application.class, args);
        ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
        System.out.println("========================================"+context.getEnvironment().getProperty("server.address"));
        System.out.println("========================================"+context.getEnvironment().getProperty("server.contextPath"));
        System.out.println("========================================"+context.getEnvironment().getProperty("server.port"));
    }
}